<?php
namespace CTCF;
class CTCFCache {
	public $CAC;
	public function __construct(){
		include_once './Core/Vendor/Cache/phpfastcache.php';
		\phpFastCache::setup('storage','auto');
		$this->CAC = new \phpFastCache();
	}
	public function save($k,$v,$t=300){
		$this->CAC->set($k,$v,$t);
	}
	public function get($k){
		return $this->CAC->get($k);
	}
	public static function s($k,$v,$t=300){
		$cache = new CTCFCache();
		$cache->save($k, $v,$t);
	}
	public static function g($k){
		$cache = new CTCFCache();
		return $cache->get($k);
	}
}